package com.rd.student.wulian.wanggaobo.day0714;

public class SnowPyramid {
    public static void main(String[] args) {
        int levels = 6;

        for (int i = 1; i <= levels; i++) {
            for (int j = 1; j <= levels - i; j++) {
                System.out.print(" ");
            }

            for (int k = 1; k <= 2 * i - 1; k++) {
                System.out.print("*");
            }

            System.out.println();
        }
    }
}